package com.central.project.service;

import com.central.common.model.Result;
import com.central.common.model.SysUser;
import com.central.common.service.ISuperService;
import com.central.common.model.ProUserRole;

import java.util.List;
import java.util.Set;

/**
 * @author Tindy
 * @date 2021/6/24
 * @describe
 */
public interface IProUserRoleService extends ISuperService<ProUserRole> {

    void updateProAdmins(Long proId, Set<Long> userIds);

    List<ProUserRole> findRolesByUserId(Long proId, Long userId);
    List<ProUserRole> findRolesByProId(Long proId);

    Result addProMenbers(Long currentProjectId, Long userId);

    Result delProMenbers(Long currentProjectId, Long userId);

    Result updateProMenberRole(Long currentProjectId, Long userId, Set<Long> roles);
}